package com.zlf.feign;


import com.zlf.po.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

//指定调用的食品微服务名
//@FeignClient注解的fallback属性指定熔断降级方法
@FeignClient(name="wallet-server",fallback=WalletFeignClientCallBack.class)
public interface WalletFeignClient {
    @PostMapping("/WalletController/createWallet/{id}/{pass}")         //根据id和pass创建钱包（id用userId）
    public CommonResult createWallet(
            @PathVariable("id") Long id,
            @PathVariable("pass") String pass);
}